package com.myjavatime;

import javax.xml.crypto.Data;
import java.util.Date;

class Employee{
    String name;
    int age;
}

public class DataDemo1 {
    public static void main(String[] args) {
        Date data = new Date();
        System.out.println(data);
        long current = System.currentTimeMillis();
        Date date1 =new Date(current);
        System.out.println(date1);
        String s = date1.toLocaleString();//中国人喜欢的格式我的老婆是个中国人
        System.out.println(s);

    }
}
